home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / program / recio212.zip / history < prev    next >
Text File  |  1995-01-29  |  10KB  |  227 lines

  1. recio, Version 2.12, Release January 29, 1995.
  2. Copyright (C) 1994-1995, William Pierpoint.
  3.  
  4. HISTORY OF RECIO LIBRARY
  5.  
  6. 01/29/95 - vers. 2.12
  7.  
  8.     New improved field parsing engine derived from regular expression 
  9.     specification is discussed in section 2.4 of design.txt.  Primary 
  10.     changes are:
  11.     
  12.         * When the field delimiter is not whitespace and the text
  13.           delimiter is whitespace (or anytime the text delimiter 
  14.           is not used even if defined as non-whitespace), leading
  15.           and lagging whitespace are not trimmed from a string field.
  16.     
  17.         * When the text delimiter is not whitespace, the text 
  18.           delimiter can be included as part of a field provided it 
  19.           is not followed by the field termination sequence.  The 
  20.           field termination sequence consists of the text delimiter 
  21.           followed by optional whitespace followed by either the 
  22.           field delimiter or the end of the record.  To illustrate 
  23.           for comma delimited fields with quoted text, the following 
  24.           is only one field: "K&R wrote, "Hello, World"".
  25.     
  26.         * When the text delimiter is the double quote character,
  27.           quoted text within the field is treated as a single word.  
  28.           The comma-delimited example "Use case "1", okay?" parses 
  29.           to one field.
  30.           
  31.         * Fixed a bug in how the rnumfld function counts fields.  
  32.           When the field delimiter is whitespace, the rnumfld function 
  33.           would count any trailing whitespace in the last field as an 
  34.           extra empty field.  The rnumfld function no longer counts any 
  35.           empty fields when whitespace is used as the field separator 
  36.           because empty fields are undetectable in this situation.
  37.     
  38.     An expanded discussion of the ltoa and ultoa functions can now be 
  39.     found in section 3.6 of design.txt.  Included simple ltoa and ultoa 
  40.     code for compilers that don't have these functions.
  41.  
  42. 12/26/94 - vers. 2.11
  43.  
  44.     Fixed some typos in spec.txt.  Added section 3.6 to design.txt.  
  45.     Made some minor stylistic improvements to the source code.
  46.  
  47. 11/2/94 - vers. 2.10
  48.  
  49.     Added new time fields.  Can input and output times using either 
  50.     the time_t or struct tm types and in various user specified formats.  
  51.     New modules are rgett.c, rputt.c, rcgett.c, and rcputt.c.
  52.  
  53.     Time formats are specified using a subset of the specifiers 
  54.     from the ANSI-C strftime function.  Supported specifiers are:
  55.         %d - day of month (1-31)
  56.         %H - hour from 24-hour clock (0-23)
  57.         %m - month (1-12)
  58.         %M - minute (0-59)
  59.         %s - second (0-61)
  60.         %y - year without century (00-99)
  61.         %Y - year with century (e.g. 1994)
  62.  
  63.     The default time format is "%m/%d/%y".  Can override the format on 
  64.     any record stream with a new format using the rsettmfmt function.
  65.  
  66.     Added new warning macro constant R_WTMFMT.  R_WTMFMT indicates that 
  67.     the time data was incomplete (i.e. any element of time format not 
  68.     matched against data).  Also new macro constants R_WFAULT and R_EFAULT 
  69.     added for use by application specific functions.
  70.  
  71.     Data written to an output stream can now be written without field and 
  72.     text delimiters.  Just set the field and text delimiters to the null 
  73.     character.
  74.  
  75. 10/10/94 - vers 2.04
  76.  
  77.     Added new string functions scntrimbegs, scntrimends, and scntrims 
  78.     to rstr.c file.
  79.  
  80.     Fixed minor bug in _rfldstr function in rget.c file.
  81.  
  82.     Changed return type for rskipfld and rskipnfld to unsigned, and  
  83.     num parameter in rskipnfld to unsigned.  Functions now return 
  84.     zero on error.
  85.  
  86.     Added new functions rnumfld, rgetfldpos, and rsetfldpos to rget.c
  87.     file.
  88.  
  89. 10/02/94 - vers 2.03
  90.  
  91.   Eliminated error return values for most functions.  This promotes a 
  92.   programming style that makes use of the callback error function as the 
  93.   preferred way to handle errors.  For lint users, reduces the number of 
  94.   warnings.
  95.  
  96.   Added macro ristxtfld.  If ristxtfld macro returns non-zero, then the 
  97.   current field (the field most recently input or output) was quoted with 
  98.   the text character delimiter (if not white space).  If ristxtfld macro 
  99.   returns zero, then the current field was not quoted.
  100.  
  101.   Added macro rresetrec.  Use of the rresetrec macro allows you to read 
  102.   the fields from the record buffer multiple times.  For example, you 
  103.   could first use rskipnfld to determine the number of fields, then use 
  104.   rresetrec to reset back to the beginning of the record buffer, and 
  105.   finally read in each field until you have reached the number of fields.
  106.  
  107.   Added modules remsg.c and rwmsg.c containing simple callback functions 
  108.   rerrmsg and rwarnmsg for reporting errors and warnings respectively.  
  109.   You may wish to use these functions during the initial prototyping stage 
  110.   of software development.  In the later stages of development, you can 
  111.   substitute more robust error and warning message functions.  Also added 
  112.   the rinit function that registers the error and warning message functions.  
  113.   It just calls rseterrfn and rsetwarnfn, but may be easier to remember.
  114.  
  115.   Added module rstr.c.  This module contains a small set of string functions 
  116.   that are needed by rget.c.  You may also find them useful in your programs.
  117.   See section 7 of the ascii file USAGE.TXT for more details.
  118.  
  119. 05/02/94 - vers 2.02
  120.  
  121.   Handling of errno made more reliable and more portable.  Some Borland C 
  122.   conversion functions clear errno first, some do not.  Where errno is 
  123.   checked after a conversion, cleared errno before conversion.
  124.  
  125.   Reduced code size of numeric field function modules by one-third by 
  126.   eliminating the macro emulation of function templates.  Number of header 
  127.   files reduced from nine to one.
  128.  
  129. 04/22/94 - vers 2.01
  130.  
  131.   Added rsetrecstr function to rget.c.  Sometimes it is handy to stuff a 
  132.   record buffer with your own string, then let the field input functions 
  133.   scan it.  
  134.   
  135.   Added mode check to several rget.c functions to ensure an error will be 
  136.   generated if these input functions are mistakenly used in an output stream.
  137.  
  138.   Fixed bugs in rwarn.c.  Warnings were not being cleared or reset correctly.
  139.  
  140. 04/15/94 - vers 2.00
  141.  
  142.   RECIO can now write as well as read.  Over 25 new functions added.
  143.  
  144.   New record streams that are always open are recout, recerr, and recprn.
  145.   New predefined context numbers are RECOUT, RECERR, and RECPRN.
  146.  
  147.   ROPEN_MAX increased from 5 to 8.
  148.  
  149.   New symbolic error constants are: 
  150.     R_EINVMOD - tried to read file opened in write mode, or vice versa.
  151.     R_ENOPUT  - unable to output data.
  152.  
  153.   New callback warning function and associated warning functions.
  154.   Now all empty data strings are trapped as warnings.  Application can
  155.   choose to handle them or to ignore them.  Failure of atexit function 
  156.   is changed from an error to a warning.
  157.  
  158.   New symbolic warning constants:
  159.     R_WEMPSTR - data string is empty.
  160.     R_WWIDTH  - data too wide for columnar output.
  161.     R_WNOREG  - unable to register exit function with atexit().
  162.                 (changed from error symbolic constant R_ENOREG).
  163.  
  164. 04/8/94 - vers 1.20
  165.  
  166.   Created new rerrstr and rstrerror functions.  Simplified TESTCH.C and 
  167.   TESTCO.C code by using rerrstr.
  168.  
  169.   Changed the specification and code for the rgets and rcgets functions to 
  170.   return a pointer to an empty string (rather than a null pointer) on error.  
  171.   This will help reduce null pointer errors in application programs. 
  172.  
  173.   Changed the specification and code for the rgetrec function.  The rgetrec 
  174.   function now clears the record buffer before the next record is read.  
  175.   This will cause the error number to be set to R_EMISDAT if the application 
  176.   ignores the eof indicator and attempts to read fields in records beyond 
  177.   end-of-file.  There is one exception: if the field just prior to the record 
  178.   buffer string terminator is a string field (which for an empty record buffer 
  179.   is the first field), it won't be trapped as missing data.  This is an 
  180.   unavoidable consequence of allowing empty string fields.  But you shouldn't 
  181.   be ignoring end-of-file anyway!  Also rgetrec continues to increment the 
  182.   record number if the program reads beyond end of file.  This solves an 
  183.   "off by one" bug when the file ends prematurely.
  184.  
  185.   Developed the dif program to locate line where two text files first 
  186.   differ.  Inserted dif source into TUTOR.TXT to illustrate a very simple
  187.   callback error function.  Substituted the dif program for the cmp program 
  188.   in regression test TEST.BAT.
  189.  
  190.  
  191. 04/5/94 - vers 1.11
  192.  
  193.   When is the minimum not the minimum?  MIN values in <float.h> are defined 
  194.   differently than in <limits.h>.  Fixed code to match definitions in 
  195.   ANSI X3.159-1989 Section 2.2.4.2.
  196.   
  197.   RECIO now tests for underflow and overflow of all floating point numbers 
  198.   input.  Test results TESTCH.OUT shows when overflow and underflow occur.
  199.   
  200.   Created new rfix functions to provide a quick way to fix overflows and 
  201.   underflows, and to get callback error functions up and running more 
  202.   quickly.
  203.  
  204.  
  205. 03/28/94 - vers 1.10
  206.  
  207.   Created single precision floating point functions rgetf() and rcgetf().
  208.  
  209.   Created functions rsetbegcolno() and rbegcolno() to make it easy to 
  210.   have column numbering start at either 0 or 1.  Default is 0.
  211.  
  212.   Created program TESTCO to test column delimited fields; enhanced test 
  213.   program TESTCH for character delimited fields.
  214.   
  215.   Created new symbolic error constants for record streams.  Program must 
  216.   use symbolic constants starting with R_ (such as R_EINVDAT) for valid 
  217.   record streams; use errno constants (such as ENOMEM) for invalid record 
  218.   streams.  New error checking provides better reporting and portability.
  219.   New symbolic error constants are not compatible with version 1.00; 
  220.   some rework of version 1.00 callback error functions required.
  221.  
  222.   Fixed some bugs in the column delimited functions.
  223.  
  224. 03/23/94 - vers 1.00
  225.  
  226.   Initial public release.
  227.